//// Game Thread 
//// author: MV
package com.endgamefraction.androidinfection;	

import javax.microedition.khronos.opengles.GL10;

import android.os.Handler;
import android.os.SystemClock;
import android.view.SurfaceHolder;
import objectManager.CObjectManager;


class GameThread extends Thread
{
	private SurfaceHolder _holder;
	private GLSurface _renderView;
	public boolean running = false;
	private float secondsDelta;
	private float prevTime;
	public boolean shutdown = false;
	
	GameThread()
	{
		
	}
	
	
	@Override
	public void run()
	{
		super.run();
		
		while( running ) 
		{
			// do quick time calculations
			float currTime = SystemClock.uptimeMillis();
			float elapsed = (float)(currTime - prevTime) / 1000.0f;
			if( elapsed > 0.1f)
				elapsed = 0.1f;

			prevTime = currTime;

			//update game objects

		}
		
	}
	
}